public class test {
    // 书籍属性
    private String title; // 书名
    private String publisher; // 出版社
    private String author; // 作者
    private String publicationDate; // 出版日期

    // 构造方法
    public test(String title, String publisher, String author, String publicationDate) {
        this.title = title;
        this.publisher = publisher;
        this.author = author;
        this.publicationDate = publicationDate;
    }

    // Getter 和 Setter 方法
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublicationDate() {
        return publicationDate;
    }

    public void setPublicationDate(String publicationDate) {
        this.publicationDate = publicationDate;
    }

    // 打印书籍信息的方法
    public void printBookInfo() {
        System.out.println("书名: " + title);
        System.out.println("出版社: " + publisher);
        System.out.println("作者: " + author);
        System.out.println("出版日期: " + publicationDate);
    }

    // 主方法，用于测试书籍对象
    public static void main(String[] args) {
        // 创建书籍对象
        test myBook = new test("大数据原理与应用", "中国铁道出版社", "林子雨", "2021-01-01");

        // 输出书籍信息
        myBook.printBookInfo();
    }
}